<?php   
class ControllerErrorNotFound extends FrontController {
	public function index() {		
		
		$this->document->setTitle($this->_['heading_title']);
		
		$this->data['heading_title'] = $this->_['heading_title'];		
		$this->data['text_error'] = $this->_['text_error'];
		$this->data['continue'] = HTTP_SERVER;
		
		$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');		
		
		//needed if using forward
		if (IS_MOBILE) {
			$this->children = array(
				'common/content_top',
				'common/content_bottom',
				'common/footer',
				'common/header'
			);
		}
		else {
			$this->children = array(
				'common/column_left',
				'common/column_right',
				'common/content_top',
				'common/content_bottom',
				'common/footer',
				'common/header'
			);
		}
		
		$this->display('error/not_found.tpl');
  	}
}
?>